using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SafeBox : MonoBehaviour
{
    private void OnTriggerExit(Collider other)
    {
        if (other.name == "Body")
        {
            Debug.Log("over!");
            Destroy(this.transform.parent.gameObject);
        } 
    }
}
